<?php
/**
 * 活动页扩展数据
 */
use Biz\tools\GoodsExposureLog;

class PageExtendAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    /**
     * @throws Exception
     */
    public function main()
    {
        $id = $this->getRequest()->getQuery('id');
        $uid = $this->uid;
        if ($id) {

            $pageInfo = \Biz\service\activity\PageExtend::goodsTrend2021($id, $uid);

            $this->setSuccess($pageInfo);
        } else {
            throw new Exception('参数错误');
        }
    }
    
}